package com.supermarket.api.repository;

import com.supermarket.api.entity.ShopEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 店铺相关
 * @author 李其伟
 * @date 2023/10/16
 */
@Repository
public interface ShopRepository extends JpaRepository<ShopEntity, Long> {

    Page<ShopEntity> findAllByShopStatus(Integer shopStatus, Pageable pageable);
}
